<template>
    <div style="background-color: white">
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }"><i class="el-icon-s-promotion"></i>后台管理</el-breadcrumb-item>
            <el-breadcrumb-item>用户列表</el-breadcrumb-item>
        </el-breadcrumb>
        <el-divider></el-divider>
        <el-table :data="tableData" stripe border style="width: 100%">
            <el-table-column prop="id" align="center" label="ID" width="50"></el-table-column>
            <el-table-column prop="username" align="center" label="用户名" width="140"></el-table-column>
            <el-table-column prop="nickname" align="center" label="昵称" width="180"></el-table-column>
            <el-table-column prop="memberLevel" align="center" label="会员等级"></el-table-column>
            <el-table-column prop="icon" align="center" label="头像"></el-table-column>
            <el-table-column prop="gender" align="center" label="性别"></el-table-column>
            <el-table-column prop="city" align="center" label="生日"></el-table-column>
            <el-table-column prop="phone" align="center" label="手机号" width="150"></el-table-column>
            <el-table-column  align="center" label="是否启用" width="80">
                <template slot-scope="scope">
                    <!-- active-value="1"开启时的数值  inactive-value="0" 关闭时的数值 -->
                    <el-switch
                            @change=""
                            v-model="scope.row.enable"
                            :active-value="1"
                            :inactive-value="0"
                            active-color="#13ce66"
                            inactive-color="#999">
                    </el-switch>
                </template>

            </el-table-column>
            <el-table-column align="center" label="管理" width="100">
                <template slot-scope="scope">
                    <el-button type="warning" size="mini" icon="el-icon-edit" circle
                               @click=""></el-button>
                    <el-button type="danger" size="mini" icon="el-icon-delete" circle
                               @click=""></el-button>
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                tableData: [],
            }
        },
    }
</script>

